<template>
	<view class="page">
		<view class="tit">
			{{newsInfo.title}}
		</view>
		<view class="time">
			{{newsInfo.createtime}}
		</view>
		<u-parse :content="newsInfo.content"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				newsInfo: {}
			};
		},
		onLoad(o) {
			this.$api.index.news_detail({id:o.id}).then(res=>{
				this.newsInfo = res.data.news
			})
			
		}
	}
</script>

<style lang="scss" scoped>
.page{
	padding: 32rpx;
	.tit{
		font-size: 1.5em;
		font-weight: bold;
		margin-bottom: 20rpx;
		text-align: center;
	}
	.time{
		color: #aaa;
		text-align: center;
		margin-bottom: 20rpx;
	}
}
</style>